//
//  NetworkAgent.h
//  BaseProject
//
//  Created by Macx on 2018/2/22.
//  Copyright © 2018年 Gavin. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@class BaseRequest;

@interface NetworkAgent : NSObject

+ (NetworkAgent *)sharedAgent;

- (void)addRequest:(BaseRequest *)request;

- (void)cancelRequest:(BaseRequest *)request;

- (void)cancelAllRequests;

- (NSString *)buildRequestUrl:(BaseRequest *)request;

@end

NS_ASSUME_NONNULL_END
